ActivateControl
NEW WITH THE APPEARANCE MANAGER
Activates a control and any latent embedded controls.
pascal OSErr ActivateControl (ControlHandle inControl);
inControl
- On input, a handle to a control that you wish to activate. Passing a window's root control will activate all controls in that window.
- function result
- A result code; see "Result Codes".
DISCUSSION
TheActivateControl
function should be called instead ofHiliteControl
to activate a specified control and its latent embedded controls. For a discussion of latency, see "Manipulating Controls".You can use
ActivateControl
to activate all controls in a window by passing the window's root control in theinControl
parameter.If a control definition function supports activate events, it will receive a
kControlMsgActivate
message before redrawing itself in its active state.SEE ALSO
DeactivateControl
."Appearance Manager Gestalt Selector Constants".